/**
 * @author Mirko Bordjoski
 */	
package org.piwik.requests
{
	//import org.piwik.methods.VisitorInterestMethods;
	
	
	public class VisitorInterest
	{
		
		public static const PER_VISIT_DURATION:String = "VisitorInterest.getNumberOfVisitsPerVisitDuration";
		public static const PER_PAGE:String = "VisitorInterest.getNumberOfVisitsPerPage";
		
		
		public function VisitorInterest(){}
		
		public static function perVisitDuration($date:String = "last15", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = VisitorInterest.PER_VISIT_DURATION;//VisitorInterestMethods.PER_VISIT_DURATION;
			req.period = $period;
			req.requestType = "perVisitDuration";
			
			return req;				
		}
		
		public static function perPage($date:String = "last15", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = VisitorInterest.PER_PAGE;//VisitorInterestMethods.PER_PAGE;
			req.period = $period;
			req.requestType = "perVisitDuration";
			
			return req;				
		}

	}
}